import {Input, Button } from "antd";
import React, { useState } from "react";
const InputDemoOne: React.FC = () => {
  const [submitLoading, setSubmitLoading] = useState(false);
  const fn = () => {
    setSubmitLoading(true);
    setTimeout(() => {
      setSubmitLoading(false);
    }, 2000);
  };
  return (
    <div>
        <Input placeholder="Basic usage" style={{width:'300px'}}/>
        <Button type="default" loading={submitLoading} onClick={fn}>
          确认
        </Button>
    </div>
  );
};

export default InputDemoOne;
